package com.example.service;

import com.example.entity.User;
import com.example.util.ResultUtil;

import java.util.List;
import java.util.Map;

/**
 * @author : chenjianhua
 * @date : 17:02 2021/2/23
 */
public interface UserService {
    //注册
    public void regist(User user) throws Exception;

    //登录
    public User login(User user) throws Exception;

    //查用户信息
    public Map qryInfo(int userid) throws  Exception;

    // 根据id 删除
    void deleteUserById(int userid) throws Exception;

    //更新密码
    public void updatePassword(String password,int userid) throws  Exception;

    //查所有用户
    List<User> findAllUser() throws  Exception;

}
